package com.ruoyi.teaching.service;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.teaching.domain.PlatformUResource;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.teaching.domain.VettingRequest;
import com.ruoyi.teaching.domain.vo.PlatformUResourceVO;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 王旭
 * @since 2024-06-26
 */
public interface PlatformUResourceService extends IService<PlatformUResource> {

    AjaxResult selectPlatformUResourceListOwn(Integer pageNum, Integer pageSize, Integer resourceType, Integer vettingStatus, String resourceName);

    AjaxResult selectPlatformUResourceById(Long id);

    AjaxResult insertPlatformUResource( PlatformUResourceVO platformUResourceVO);

    AjaxResult deletePlatformUResourceByIds(Long[] ids);

    AjaxResult selectPlatformUResourceListSystemAdmin(Integer pageNum, Integer pageSize, Integer resourceType, Integer vettingStatus, String resourceName);

    AjaxResult selectPlatformUResourceListUser(Integer pageNum, Integer pageSize, Integer resourceType, Integer specialtyId, String resourceName, Integer sortord);

    AjaxResult updatePlatformUResourceVetting(VettingRequest vettingRequest);

    void updatePlatformUResourceDownload(Long resourceId);

    AjaxResult selectHotSearch();
}
